Skip to content

Comments

Use auto resource management for license file#330

Merged
mtwebster merged 1 commit intolinuxmint:masterfrom
hduelme:use-auto-resource-management-for-license-file
May 28, 2025
Merged

Use auto resource management for license file#330
mtwebster merged 1 commit intolinuxmint:masterfrom
hduelme:use-auto-resource-management-for-license-file

Conversation

@hduelme
Copy link
Contributor

@hduelme hduelme commented Jan 7, 2025

Replaced manual resource management for the license file with the with statement to ensure it always gets closed. Additionally, since concatenating the results of readlines() reconstructs the original file content, read() is used directly instead for simplicity and efficiency.

@clefebvre clefebvre changed the title Use auto resource management for license file [Next] Use auto resource management for license file Jan 9, 2025
@clefebvre clefebvre changed the title [Next] Use auto resource management for license file Use auto resource management for license file Feb 24, 2025
@mtwebster mtwebster merged commit 88f7b4f into linuxmint:master May 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants